<?php
/*
windows下

 1. 修改 C:\WINDOWS\system32\drivers\etc 内的hosts文件

	127.0.0.1       localhost
	127.0.0.1       www.sina.com
	165.23.0.3      www.163.com
	
	可以将网址映射到本地或者其他制定的网址 
	
	
2. Apache 配置虚拟主机 

 	1．开启 Virtual hosts
	Apache/Conf/httpd.conf
	
	开启如下
	#  Virtual hosts
	Include "conf/extra/httpd-vhosts.conf"
	
	开启 
	rewrite_module

	2.	配置虚拟主机
	Apache\conf\extra\ httpd-vhosts.conf
	
	修改样例如下 
	
	<VirtualHost *:80>
	    ##ServerAdmin postmaster@dummy-host.localhost
	    DocumentRoot "E:/xampp/htdocs/myjobs/SVNnche1an/web"
	    ServerName www.che1an.com
	    ##ServerAlias www.dummy-host.localhost
	    ##ErrorLog "logs/dummy-host.localhost-error.log"
	    ##CustomLog "logs/dummy-host.localhost-access.log" combined
	</VirtualHost>
	
	
	注意   配置多个虚拟主机时， 子域名应该放在前面
	
		如  a.163.com
			www.163.com

